package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 角色权限
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpRolePerm extends Model<JbdpRolePerm> {

    private static final long serialVersionUID=1L;

    /**
     * 角色权限ID
     */
    @TableId("ROLE_PERM_ID")
    private String rolePermId;

    /**
     * 角色ID
     */
    @TableField("ROLE_ID")
    private String roleId;

    /**
     * 权限ID
     */
    @TableField("RESOURCE_ID")
    private String resourceId;

    /**
     * 资源类型
     */
    @TableField("RESOURCE_TYPE")
    private String resourceType;


    public String getRolePermId() {
        return rolePermId;
    }

    public JbdpRolePerm setRolePermId(String rolePermId) {
        this.rolePermId = rolePermId;
        return this;
    }

    public String getRoleId() {
        return roleId;
    }

    public JbdpRolePerm setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getResourceId() {
        return resourceId;
    }

    public JbdpRolePerm setResourceId(String resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    public String getResourceType() {
        return resourceType;
    }

    public JbdpRolePerm setResourceType(String resourceType) {
        this.resourceType = resourceType;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.rolePermId;
    }

    @Override
    public String toString() {
        return "JbdpRolePerm{" +
        "rolePermId=" + rolePermId +
        ", roleId=" + roleId +
        ", resourceId=" + resourceId +
        ", resourceType=" + resourceType +
        "}";
    }
}
